// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * CustomerGroup generated by hbm2java
 */
@Entity
@Table(name = "customer_group", catalog = "magento")
public class CustomerGroup implements java.io.Serializable {
	private static final long serialVersionUID = 121323L;

	private Short customerGroupId;
	private String customerGroupCode;
	private int taxClassId;
	private Set catalogruleGroupWebsites = new HashSet(0);
	private Set catalogProductBundlePriceIndexes = new HashSet(0);
	private Set catalogruleProducts = new HashSet(0);
	private Set weeeDiscounts = new HashSet(0);
	private Set catalogruleProductPrices = new HashSet(0);
	private Set catalogProductIndexPrices = new HashSet(0);
	private Set catalogProductIndexTierPrices = new HashSet(0);
	private Set salesruleProductAttributes = new HashSet(0);
	private Set catalogProductEntityTierPrices = new HashSet(0);

	public CustomerGroup() {
	}

	public CustomerGroup(String customerGroupCode, int taxClassId) {
		this.customerGroupCode = customerGroupCode;
		this.taxClassId = taxClassId;
	}

	public CustomerGroup(String customerGroupCode, int taxClassId,
			Set catalogruleGroupWebsites, Set catalogProductBundlePriceIndexes,
			Set catalogruleProducts, Set weeeDiscounts,
			Set catalogruleProductPrices, Set catalogProductIndexPrices,
			Set catalogProductIndexTierPrices, Set salesruleProductAttributes,
			Set catalogProductEntityTierPrices) {
		this.customerGroupCode = customerGroupCode;
		this.taxClassId = taxClassId;
		this.catalogruleGroupWebsites = catalogruleGroupWebsites;
		this.catalogProductBundlePriceIndexes = catalogProductBundlePriceIndexes;
		this.catalogruleProducts = catalogruleProducts;
		this.weeeDiscounts = weeeDiscounts;
		this.catalogruleProductPrices = catalogruleProductPrices;
		this.catalogProductIndexPrices = catalogProductIndexPrices;
		this.catalogProductIndexTierPrices = catalogProductIndexTierPrices;
		this.salesruleProductAttributes = salesruleProductAttributes;
		this.catalogProductEntityTierPrices = catalogProductEntityTierPrices;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "customer_group_id", unique = true, nullable = false)
	public Short getCustomerGroupId() {
		return this.customerGroupId;
	}

	public void setCustomerGroupId(Short customerGroupId) {
		this.customerGroupId = customerGroupId;
	}

	@Column(name = "customer_group_code", nullable = false, length = 32)
	public String getCustomerGroupCode() {
		return this.customerGroupCode;
	}

	public void setCustomerGroupCode(String customerGroupCode) {
		this.customerGroupCode = customerGroupCode;
	}

	@Column(name = "tax_class_id", nullable = false)
	public int getTaxClassId() {
		return this.taxClassId;
	}

	public void setTaxClassId(int taxClassId) {
		this.taxClassId = taxClassId;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getCatalogruleGroupWebsites() {
		return this.catalogruleGroupWebsites;
	}

	public void setCatalogruleGroupWebsites(Set catalogruleGroupWebsites) {
		this.catalogruleGroupWebsites = catalogruleGroupWebsites;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getCatalogProductBundlePriceIndexes() {
		return this.catalogProductBundlePriceIndexes;
	}

	public void setCatalogProductBundlePriceIndexes(
			Set catalogProductBundlePriceIndexes) {
		this.catalogProductBundlePriceIndexes = catalogProductBundlePriceIndexes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getCatalogruleProducts() {
		return this.catalogruleProducts;
	}

	public void setCatalogruleProducts(Set catalogruleProducts) {
		this.catalogruleProducts = catalogruleProducts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getWeeeDiscounts() {
		return this.weeeDiscounts;
	}

	public void setWeeeDiscounts(Set weeeDiscounts) {
		this.weeeDiscounts = weeeDiscounts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getCatalogruleProductPrices() {
		return this.catalogruleProductPrices;
	}

	public void setCatalogruleProductPrices(Set catalogruleProductPrices) {
		this.catalogruleProductPrices = catalogruleProductPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getCatalogProductIndexPrices() {
		return this.catalogProductIndexPrices;
	}

	public void setCatalogProductIndexPrices(Set catalogProductIndexPrices) {
		this.catalogProductIndexPrices = catalogProductIndexPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getCatalogProductIndexTierPrices() {
		return this.catalogProductIndexTierPrices;
	}

	public void setCatalogProductIndexTierPrices(
			Set catalogProductIndexTierPrices) {
		this.catalogProductIndexTierPrices = catalogProductIndexTierPrices;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getSalesruleProductAttributes() {
		return this.salesruleProductAttributes;
	}

	public void setSalesruleProductAttributes(Set salesruleProductAttributes) {
		this.salesruleProductAttributes = salesruleProductAttributes;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "customerGroup")
	public Set getCatalogProductEntityTierPrices() {
		return this.catalogProductEntityTierPrices;
	}

	public void setCatalogProductEntityTierPrices(
			Set catalogProductEntityTierPrices) {
		this.catalogProductEntityTierPrices = catalogProductEntityTierPrices;
	}

}
